package com.hnichr.ump.common.assessment.entity;

import com.hnichr.ump.common.entity.UmpEntity;
import com.mxpioframework.security.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;


@MappedSuperclass
@Data
public class BaseReport extends UmpEntity {

    @Column(name = "NAME_")
    @Schema(description = "报告名称")
    private String name;

    @Column(name = "URL_")
    @Schema(description = "报告地址")
    private String url;

    @Column(name = "TYPE_")
    @Schema(description = "报告类型【Personal,HR,All】")
    private String type;

    @Column(name = "REPORT_NO_")
    @Schema(description = "报告编号")
    private String reportNo;

    @Column(name = "INVITE_ID_")
    @Schema(description = "受测邀请ID")
    private String inviteId ;

    @Column(name = "LOCAL_URL_")
    @Schema(description = "报告本地存储地址")
    private String localUrl;

    @Column(name = "TENANT_ID_")
    @Schema(description = "租户")
    @Dict(dicCode = "BEISEN_ACTIVITY_TENANT")
    private String tenantId;
}
